import request from '@/utils/request'

export default{
  // 根据条件查询
  getHospitalSetList(currentPage, size, hospitalSetQueryVo) {
    return request({
      url: `/admin/hosp/hospitalSet/getHospSetByCondition/${currentPage}/${size}`,
      method: 'post',  
      data: hospitalSetQueryVo   // 表示json格式
    })
  },
  // 删除单条信息
  removeHospitalSet(hospId) {
    return request({
      url: `/admin/hosp/hospitalSet/deleteById/${hospId}`,
      method: 'Delete',  
      params: {hospId}   // 表示string格式
    })
  },
  // 批量删除
  batchRemoveHospSets(hospIds) {
    return request({
      url: '/admin/hosp/hospitalSet/batchRemoveHospSets',
      method: 'Delete',  
      data: hospIds  
    })
  },
  // 锁定与取消锁定
  lockHospitalSet(id, status) {
    return request({
      url: `/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
      method: 'Get'
    })
  },
  // 医院设置新增操作
  addHospSet(hospitalSet) {
    return request({
      url: `/admin/hosp/hospitalSet/addHospSet`,
      method: 'post',
      data: hospitalSet
    })
  },
  // 修改
  updateHospitalSet(hospitalSet) {
    return request({
      url: `/admin/hosp/hospitalSet/updateHospitalSet`,
      method: 'post',
      data: hospitalSet
    })
  },
  // 根据ID查信息
  getHospSetById(id) {
    return request({
      url: `/admin/hosp/hospitalSet/getHospSetById/${id}`,
      method: 'GET'
    })
  }


}
